<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2021/1/10
  Time: 16:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css">
    <script>
        var ctx = "${ctx}";
    </script>
</head>
<body>
<form class="layui-form" style="width: 80%;">
    <input type="hidden" name="carId" value="${CarInfo.carId }" id="id" />
    <div class="layui-form-item">
        <label class="layui-form-label">车辆ID</label>
        <div class="layui-input-block">
            <input type="text" id="carId" class="layui-input"
                   name="carId" value="${CarInfo.carId }"
                   disabled="disabled">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">车牌号</label>
        <div class="layui-input-block">
            <input type="text" name="number" id="number" class="layui-input"
                   value="${CarInfo.number }">
        </div>
    </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属车队</label>
            <div class="layui-input-block">
                <input type="text" name="address" class="layui-input"
                       lay-verify="required" placeholder="请输入车队" value="${CarInfo.teamId }">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属公司</label>
            <div class="layui-input-block">
                <input type="text" name="type" class="layui-input"
                       lay-verify="required" placeholder="请输入公司" value="${CarInfo.type }">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">核载人数</label>
            <div class="layui-input-block">
                <input type="text" name="seatnum" class="layui-input"
                       lay-verify="required" placeholder="请输入人数" value="${CarInfo.seatnum }">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">负责人</label>
            <div class="layui-input-block">
                <input type="text" name="busMasterId" class="layui-input"
                       lay-verify="busMasterId" placeholder="请输入Id" value="${CarInfo.busMasterId }">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="note" class="layui-textarea" placeholder="请输入备注">${user.note }</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="updateCarInfo">立即保存</button>
            </div>
        </div>
</form>
<script type="text/javascript" src="${ctx }/layui/layui.js"></script>
<script type="text/javascript" src="${ctx }/js/bus/editCarInfo.js"></script>
</body>
</html>